# $NetBSD: Makefile,v 1.15 2012/11/25 23:32:31 othyro Exp $
#

DISTNAME=	tcc-0.9.22
CATEGORIES=	lang
MASTER_SITES=	http://fabrice.bellard.free.fr/tcc/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.tinycc.org/
COMMENT=	The Smallest ANSI C compiler

NOT_FOR_PLATFORM=	NetBSD-1.6.2-*
ONLY_FOR_PLATFORM=	*-*-i386

USE_TOOLS+=		gmake
HAS_CONFIGURE=		yes
CHECK_PORTABILITY_SKIP=	gcctestsuite.sh

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} != "Linux"
SUBST_CLASSES+=		ldl
SUBST_FILES.ldl=	Makefile
SUBST_STAGE.ldl=	post-patch
SUBST_SED.ldl=		-e 's,LIBS=,\#LIBS,'
.endif

CONFIGURE_ARGS+=	--prefix=${PREFIX}

.include "../../mk/bsd.pkg.mk"
